<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主页</title>
    <link rel="stylesheet" href="css/Home.css">
</head>

<body>
    <div id="loadingPage" v-show='show' transition="fade">
        <div id="container">
            <div class="a1">
                <div class="mo-boy"></div>
                <div class="mo-girl"></div>
                <div class="mo-mo"></div>
                <div class="mo-wheel2"></div>
                <div class="mo-wheel1"></div>
            </div>
            <div class="motor_shadow"></div>
            <i class="smoke smoke_1"></i>
            <i class="smoke smoke_2"></i>
            <div class="percentage">loading&nbsp;&nbsp;<span>0%</span></div>
        </div>
    </div>

    <script>
        // 获取loading元素和进度条元素
        var loadingPage = document.getElementById('loadingPage');
        var percentage = document.querySelector('.percentage span');

        // 设置初始进度为0%
        var progress = 0;

        // 创建定时器，每隔一段时间更新进度
        var timer = setInterval(function () {
            // 增加进度
            progress++;

            // 更新进度条显示
            percentage.textContent = progress + "%";

            // 判断是否达到100%
            if (progress >= 100) {
                // 关闭loading页面
                loadingPage.style.display = 'none';

                // 打开另一个HTML，使用window.location.href = '另一个HTML的URL'
                window.location.href = 'Home.html';

                // 清除定时器
                clearInterval(timer);
            }
        }, 50); // 每100毫秒增加一次进度
    </script>


</body>

</html>